package de.lulusoft.anothertorrent.core.xmlrpc;

import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcTransport;
import org.apache.xmlrpc.client.XmlRpcTransportFactory;

public class XmlRpcSocketTransportFactory implements XmlRpcTransportFactory{

	private XmlRpcClient client = null;
	public XmlRpcSocketTransportFactory(XmlRpcClient client) {
		this.client = client;
	}

	@Override
	public XmlRpcTransport getTransport() {
		XmlRpcSocketTransport transport = new XmlRpcSocketTransport(client);
		
		return transport;
	}

}
